package com.mall.xiaomi.mapper;

import com.mall.xiaomi.pojo.Category;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @ClassName CategoryMapper
 * @Description TODO
 * @action luoliang
 * @Data 2021/2/26 9:55
 * @Version 1.0
 */
public interface CategoryMapper extends Mapper<Category> {

    /**
     * 获取商品分类
     * @return
     */
    @Select("select carousel_id,category_name from category")
    List<Category> getAll();

}
